//
//  HomeMainListCell.m
//  QuLuoMianApp
//
//  Created by Sierra on 2017/12/20.
//  Copyright © 2017年 科大讯飞. All rights reserved.
//

#import "HomeMainListCell.h"
#import "HomeListModel.h"


@interface HomeMainListCell()

@property (weak, nonatomic) IBOutlet UIImageView *bgIcon;



@end

@implementation HomeMainListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setListModel:(HomeListModel *)listModel{
    _listModel = listModel;
    
    self.bgIcon.image = kImage(listModel.bgIcon);
    
    [self.btnIcon setImage:kImage(listModel.btnIcon) forState:UIControlStateNormal];
    
    [self.leftBtnIcon setImage:kImage(listModel.btnIcon) forState:UIControlStateNormal];
}



- (IBAction)didTapBtnClick:(UIButton *)sender {
    
    ! self.btnBlock ? : self.btnBlock();
    
}



- (IBAction)didTapLeftBtnClick:(UIButton *)sender {
      ! self.btnBlock ? : self.btnBlock();
}


@end
